package cn.appsys.controller.deve;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.appsys.pojo.DataDictionary;
import cn.appsys.service.deve.dictionary.DevDataDictionaryService;

/**
 * 字典表控制类
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/devData")
public class DevDataDictionaryController {
	@Resource
	private DevDataDictionaryService devDataDictionaryService;
	/**
	 * ajax异步查询平台列表
	 * @param typeCode
	 * @return
	 */
	@RequestMapping(value="/ajaxPingTai/{typeCode}",method = RequestMethod.GET)
	@ResponseBody
	public Object ajaxPingtai(@PathVariable("typeCode") String typeCode){
		//通过typeData查询字典表
		List<DataDictionary> list = devDataDictionaryService.queryByTypeCode(typeCode);
		return list;
	}
}
